package cl.utalca.robot.domain;

import java.io.Serializable;

public class LanguageDTO implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int id;	
	private String languageName;
	private String compileCommand;
	private String executeCommand;
	private String version;
	
	
	public LanguageDTO(int id, String languageName, String compileCommand,
			String executeCommand, String version) {
		super();
		this.id = id;
		this.languageName = languageName;
		this.compileCommand = compileCommand;
		this.executeCommand = executeCommand;
		this.version = version;
	}
	public LanguageDTO() {
		
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getLanguageName() {
		return languageName;
	}
	public void setLanguageName(String languageName) {
		this.languageName = languageName;
	}
	public String getCompileCommand() {
		return compileCommand;
	}
	public void setCompileCommand(String compileCommand) {
		this.compileCommand = compileCommand;
	}
	public String getExecuteCommand() {
		return executeCommand;
	}
	public void setExecuteCommand(String executeCommand) {
		this.executeCommand = executeCommand;
	}
	
	public String getVersion() {
		return version;
	}
	public void setVersion(String version) {
		this.version = version;
	}
	@Override
	public boolean equals(Object obj) {
		
		if(obj == null){
			
			return false;
		}
		if(!(obj instanceof LanguageDTO)) return false;
		LanguageDTO language = (LanguageDTO) obj;
		
		return language.getId() == this.getId();
	}
}
